package cn.zhjshn.startproject.factory;

import cn.zhjshn.startproject.iface.WeatherIface;
import cn.zhjshn.startproject.model.Weather51Model;
import cn.zhjshn.startproject.model.WeatherModel;

/**
 * Created by Junsheng on 2016/12/14.
 */

public class WeatherFactory {
    public static WeatherIface getInstance(String url){
        if(url.equals("weather")){
            //return WeatherModel.getInstance();
            return new WeatherModel();
        }
        else{
            //return Weather51Model.getInstance();
           return new Weather51Model();
        }
    }
}
